package com.lening.community.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @ToDo:
 * @Author：潘万法
 * @date: 2024/6/3 15:57
 */
@TableName("building")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="楼宇管理", description="")
public class Building implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "bid", type = IdType.ASSIGN_ID)
    private Long bid;               //楼宇序号
    private Long communityId;       //所属社区 外键
    //private String communityName;   //社区名称
    private String buildingName;    //楼宇名称
    //private Long uid;               //根据这个uid获取单元
    private Long unitCount;         //单元数
    private Long typeId;           //楼宇类型
    private Long buildingStructureId;//建筑结构外键
    private String floorCount;      //层数
    private Long efforId;           //楼宇用途 外键
    private LocalDateTime buildDate;//建成日期
    private LocalDateTime acceptanceDate;//验收日期
    private BigDecimal buildArea;         //建筑面积
    private BigDecimal useArea;           //使用面积
    private Long houseCount;        //总楼房数量
    private String isLocker;          //是否有储物间 前端写
    private Long deleteId;            //1删除   0未删
    private String remarks;        //备注
}
